import requestModel from '@/utils/request-model'
import { useModelStore } from '@/stores/model'

// POSP 蛋白序列二级结构预测（表单方式）
export const predictPosp = (text) => {
  const modelStore = useModelStore()
  return requestModel({
    url: modelStore.modelInfo.serverUrl + '/predict',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: { text }
  })
}